package cn.script.util;

import com.jacob.com.Variant;

/**
 * @author 周永波
 */
public class ParUtils {

    public static Variant[] vars(Object... pars) {
        Variant[] variants = new Variant[pars.length];
        for (int i = 0; i < pars.length; i++) {
            variants[i] = ParUtils.var(pars[i]);
        }
        return variants;
    }

    public static Variant var(int par) {
        return new Variant(par);
    }

    public static Variant var(long par) {
        return new Variant(par);
    }

    public static Variant var(String par) {
        return new Variant(par);
    }

    public static Variant var(Object par) {
        return new Variant(par);
    }

    public static Variant var(double par) {
        return new Variant(par);
    }

    public static Variant var(float par) {
        return new Variant(par);
    }
}
